//
//  DSTabBarController.m
//  budejie
//
//  Created by Dason on 16/8/22.
//  Copyright © 2016年 Dason. All rights reserved.
//

#import "DSTabBarController.h"
#import "DSJinghuaNavController.h"
#import "DSZuixinNavController.h"
#import "DSGuanzhuNavController.h"
#import "DSMeNavController.h"

@interface DSTabBarController ()

@end

@implementation DSTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setMyController];

    self.tabBar.tintColor = [UIColor darkGrayColor];
}

- (void)setMyController{
    UINavigationController *JinghuaC = [[DSJinghuaNavController alloc]init];
    UIImage*JinghuaImg = [[UIImage imageNamed:@"tabBar_essence_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImage*JinghuaSelectImg = [[UIImage imageNamed:@"tabBar_essence_click_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    JinghuaC.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"精华" image:JinghuaImg selectedImage:JinghuaSelectImg];
    
    
    UINavigationController *ZuixinC = [[DSZuixinNavController alloc]init];
    UIImage*ZuixinImg = [[UIImage imageNamed:@"tabBar_new_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImage*ZuixinSelectImg = [[UIImage imageNamed:@"tabBar_new_click_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    ZuixinC.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"最新" image:ZuixinImg selectedImage:ZuixinSelectImg];
    
    
    UINavigationController *GuanzhuC = [[DSGuanzhuNavController alloc]init];
    UIImage*GuanzhuImg = [[UIImage imageNamed:@"tabBar_friendTrends_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImage*GuanzhuSelectImg = [[UIImage imageNamed:@"tabBar_friendTrends_click_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    GuanzhuC.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"关注" image:GuanzhuImg selectedImage:GuanzhuSelectImg];
    
    UINavigationController *MeC = [[DSMeNavController alloc]init];
    UIImage*MeImg = [[UIImage imageNamed:@"tabBar_me_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImage*MeSelectImg = [[UIImage imageNamed:@"tabBar_me_click_icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    MeC.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"我" image:MeImg selectedImage:MeSelectImg];
    
    
    self.viewControllers = @[JinghuaC,ZuixinC,GuanzhuC,MeC];
}



@end
